package com.pipi.sso.core.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * All rights Reserved, Designed By www.maihaoche.com
 *
 * @Package com.pipi.sso.core.enums
 * @date: 2019/3/30 1:06 PM
 * @Copyright: 2017-2020 www.maihaoche.com Inc. All rights reserved.
 */
@AllArgsConstructor
public enum DormErrorCodeEnum {

    QUERY_STUDENT_FAIL("1000", "查询学生信息失败"),
    QUERY_COLLEGE_FAIL("1001", "查询学院信息失败"),
    UPDATE_STUDENT_FAIL("1002", "修改学生信息失败"),
    ADD_STUDENT_FAIL("1003", "添加学生信息失败"),
    DELETE_STUDENT_FAIL("1004", "删除学生信息失败"),
    STUDENT_IS_EXIST("1005", "该学生信息已存在"),
    ADD_COLLEGE_FAIL("1006", "添加学院信息失败"),
    PARAM_ERROR("1007", "参数错误"),
    UPDATE_COLLEGE_FAIL("1008", "添加学院信息失败"),
    COLLEGE_STATUS_EXCEPTION("1009", "学院状态异常"),
    QUERY_CLASSES_FAIL("1010", "查询班级信息失败"),
    ADD_CLASSES_FAIL("1011", "添加班级信息失败"),
    UPDATE_CLASSES_FAIL("1012", "更新班级信息失败"),
    COLLEGE_NOT_EXIST_OR_DISENABLE("1013", "学院信息不存在或已禁用"),
    CLASSES_IS_EXIST("1014", "班级信息已存在"),
    DELETE_CLASSES_FAIL("1015", "删除班级信息失败"),
    CON_NOT_DELETE_CLASSES_HAVE_STUDENTS("1016", "无法删除有学生的班级"),
    ADD_DORMITORY_BUILDING_FAIL("1017", "添加宿舍楼失败"),
    QUERY_DORMITORY_BUILDING_FAIL("1018", "查询宿舍楼失败"),
    UPDATE_DORMITORY_BUILDING_FAIL("1019", "更新宿舍楼失败"),
    DELETE_DORMITORY_BUILDING_FAIL("1020", "删除宿舍楼失败"),
    QUERY_DORMITORY_ROOT_FAIL("1021", "查询宿舍失败"),
    ADD_DORMITORY_ROOM_FAIL("1022", "添加宿舍失败"),
    UPDATE_DORMITORY_ROOM_FAIL("1022", "更新宿舍失败"),
    DELETE_DORMITORY_ROOM_FAIL("1023", "删除宿舍失败"),
    STUDENT_IS_CHECK_IN("1024", "该学生已入住"),
    QUERY_NOTICE_FAIL("1025", "查询公告失败"),
    ADD_NOTICE_FAIL("1026", "添加公告失败"),
    UPDATE_NOTICE_FAIL("1027", "更新公告失败"),
    DELETE_NOTICE_FAIL("1028", "删除公告失败"),
    USER_STATUS_EXCEPTION("1029", "用户状态异常"),
    ADD_USER_FAIL("1030", "添加用户信息失败"),
    USER_IS_EXIST("1031", "该用户信息已存在"),

    DATA_EXCEPTION("9998", "数据异常"),
    EXCEPTION("9999", "系统异常");

    @Getter
    private String errCode;

    @Getter
    private String errMsg;
}
